-- GENERATED SPELL FOR [Ragestone Threshalisk] --


function spell0_20279(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(3019,pUnit)
pUnit:RegisterEvent('Sorts_20279', 15000, 1)
end

function spell1_20279(pUnit, Event) --@Threshalisk Charge,n/a--
pUnit:FullCastSpellOnTarget(35385,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20279', 565, 1)
end

function Sorts_20279(pUnit, Event)
local choix_sorts_20279 = math.random(0, 1)
if choix_sorts_20279 == 0 then
pUnit:RegisterEvent('spell0_20279', 1, 1)
end
if choix_sorts_20279 == 1 then
pUnit:RegisterEvent('spell1_20279', 1, 1)
end
end

function mob20279_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20279', math.random(1500, 3000), 1)
end

function mob20279_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20279_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20279_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20279, 1, 'mob20279_Action')
RegisterUnitEvent(20279, 2, 'mob20279_Leave')
RegisterUnitEvent(20279, 3, 'mob20279_Kill')
RegisterUnitEvent(20279, 4, 'mob20279_Die')
